home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / SCAPI 0.85 / Spunk Cross API 1.0 / MacSCAPI / Headers / SCAPIButton.h < prev    next >
Encoding:
Text File  |  1997-05-30  |  2.2 KB  |  86 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    SCAPIButton.h                  ©1997 Spunk Cross         All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef SCAPIBUTTON_H
  6. #define SCAPIBUTTON_H
  7.  
  8. #include "SCAPICommonIncludes.h"
  9. #include "SCAPIWindow.h"
  10.  
  11.  
  12. // ---------------------------------------------------------------------------
  13. //        • Defines
  14. // ---------------------------------------------------------------------------
  15.  
  16. #define SCAPIButton_default_title         "button"
  17. #define SCAPIButton_default_originx        0
  18. #define SCAPIButton_default_originy        0
  19. #define SCAPIButton_default_width        75
  20. #define SCAPIButton_default_height        30
  21.  
  22.  
  23. // ---------------------------------------------------------------------------
  24. //        • SCAPIButton Class
  25. // ---------------------------------------------------------------------------
  26.  
  27. class SCAPIButton : public LStdButton
  28. {
  29.  
  30.     // ===========================================================
  31.     // === Spunk Cross API, these are the routines you can use ===
  32.     // ===========================================================
  33.     
  34.         // • Constructor - Destructor
  35.         // --------------------------
  36.         
  37.     public:
  38.     
  39.         SCAPIButton(    SCAPIWindow*    inWindowP,
  40.                         int                inCommand,
  41.                         char*            inTitle = SCAPIButton_default_title,
  42.                         int                inOriginx = SCAPIButton_default_originx,
  43.                         int             inOriginy = SCAPIButton_default_originy,
  44.                         int                inWidth = SCAPIButton_default_width,
  45.                         int                inHeight = SCAPIButton_default_height        );
  46.         
  47.         ~SCAPIButton();
  48.         
  49.         
  50.         // • Member functions
  51.         // ------------------
  52.         
  53.     public:
  54.         
  55.         void            Enable();
  56.         void            Disable();
  57.         
  58.         
  59.     // =================================
  60.     // === Internal part, do not use ===
  61.     // =================================
  62.         
  63.         // • Member functions
  64.         // ------------------
  65.         
  66.     private:
  67.     
  68.         SPaneInfo        MakeSPaneInfo(    SCAPIWindow*    inWindowP,
  69.                                         int                inOriginx,
  70.                                         int                inOriginy,
  71.                                         int                inWidth,
  72.                                         int                inHeight    );
  73.                                         
  74.         unsigned char*        MakePascalString(    char*    inTitle );
  75.                                         
  76.         
  77.         // • Member variables
  78.         // ------------------
  79.         
  80.     private:
  81.     
  82.         SPaneInfo            mSPaneInfo;
  83.         unsigned char        mStr255[256];
  84. };
  85.  
  86. #endif